/*!
- * OOUI v0.29.3
+ * OOUI v0.29.4
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2018-11-01T02:03:33Z
+ * Date: 2018-11-07T00:58:30Z
*/
( function ( OO ) {
* @param {string} mode The mode. Only actions configured to be available in the specified
* mode will be made visible.
* @chainable
+ * @return {OO.ui.ActionSet} The widget, for chaining
* @fires toggle
* @fires change
*/
* @param {Object.<string,boolean>} actions A list keyed by action name with boolean
* values that indicate whether or not the action should be enabled.
* @chainable
+ * @return {OO.ui.ActionSet} The widget, for chaining
*/
OO.ui.ActionSet.prototype.setAbilities = function ( actions ) {
var i, len, action, item;
* @param {Function} callback Callback to run for each action; callback is invoked with three
* arguments: the action, the action's index, the list of actions being iterated over
* @chainable
+ * @return {OO.ui.ActionSet} The widget, for chaining
*/
OO.ui.ActionSet.prototype.forEach = function ( filter, callback ) {
this.changed = false;
*
* @param {OO.ui.ActionWidget[]} actions Action widgets to add
* @chainable
+ * @return {OO.ui.ActionSet} The widget, for chaining
* @fires add
* @fires change
*/
*
* @param {OO.ui.ActionWidget[]} actions Action widgets to remove
* @chainable
+ * @return {OO.ui.ActionSet} The widget, for chaining
* @fires remove
* @fires change
*/
* To remove only specified actions, use the {@link #method-remove remove} method instead.
*
* @chainable
+ * @return {OO.ui.ActionSet} The widget, for chaining
* @fires remove
* @fires change
*/
*
* @private
* @chainable
+ * @return {OO.ui.ActionSet} The widget, for chaining
*/
OO.ui.ActionSet.prototype.organize = function () {
var i, iLen, j, jLen, flag, action, category, list, item, special,
return this.currentWindow;
};
+/* eslint-disable valid-jsdoc */
/**
* Open a window.
*
* @fires opening
*/
OO.ui.WindowManager.prototype.openWindow = function ( win, data, lifecycle, compatOpening ) {
+ /* eslint-enable valid-jsdoc */
var error,
manager = this;
data = data || {};
*
* @param {OO.ui.Window} win Window to update, should be the current window
* @chainable
+ * @return {OO.ui.WindowManager} The manager, for chaining
*/
OO.ui.WindowManager.prototype.updateWindowSize = function ( win ) {
var isFullscreen;
* @private
* @param {boolean} [on] Bind global events
* @chainable
+ * @return {OO.ui.WindowManager} The manager, for chaining
*/
OO.ui.WindowManager.prototype.toggleGlobalEvents = function ( on ) {
var scrollWidth, bodyMargin,
bodyMargin = parseFloat( $body.css( 'margin-right' ) ) || 0;
$body.css( {
overflow: 'hidden',
+ position: 'relative',
'margin-right': bodyMargin + scrollWidth
} );
}
if ( stackDepth === 0 ) {
$body.css( {
overflow: '',
+ position: '',
'margin-right': ''
} );
}
* @private
* @param {boolean} [isolate] Make only the window manager visible to screen readers
* @chainable
+ * @return {OO.ui.WindowManager} The manager, for chaining
*/
OO.ui.WindowManager.prototype.toggleAriaIsolation = function ( isolate ) {
var $topLevelElement;
*
* @private
* @param {jQuery.Event} e Mouse down event
+ * @return {OO.ui.Window} The window, for chaining
*/
OO.ui.Window.prototype.onMouseDown = function ( e ) {
// Prevent clicking on the click-block from stealing focus
* @param {OO.ui.WindowManager} manager Manager for this window
* @throws {Error} An error is thrown if the method is called more than once
* @chainable
+ * @return {OO.ui.Window} The window, for chaining
*/
OO.ui.Window.prototype.setManager = function ( manager ) {
if ( this.manager ) {
* @param {string} size Symbolic name of size: `small`, `medium`, `large`, `larger` or
* `full`
* @chainable
+ * @return {OO.ui.Window} The window, for chaining
*/
OO.ui.Window.prototype.setSize = function ( size ) {
this.size = size;
*
* @throws {Error} An error is thrown if the window is not attached to a window manager
* @chainable
+ * @return {OO.ui.Window} The window, for chaining
*/
OO.ui.Window.prototype.updateSize = function () {
if ( !this.manager ) {
* @param {string|number} [dim.minHeight] Minimum height
* @param {string|number} [dim.maxHeight] Maximum height
* @chainable
+ * @return {OO.ui.Window} The window, for chaining
*/
OO.ui.Window.prototype.setDimensions = function ( dim ) {
var height,
*
* @throws {Error} An error is thrown if the window is not attached to a window manager
* @chainable
+ * @return {OO.ui.Window} The window, for chaining
*/
OO.ui.Window.prototype.initialize = function () {
if ( !this.manager ) {
*
* @protected
* @chainable
+ * @return {OO.ui.Dialog} The dialog, for chaining
*/
OO.ui.Dialog.prototype.detachActions = function () {
var i, len;
this.attachedActions[ i ].$element.detach();
}
this.attachedActions = [];
+
+ return this;
};
/**
* @private
* @param {boolean} [value] Layout actions vertically, omit to toggle
* @chainable
+ * @return {OO.ui.MessageDialog} The dialog, for chaining
*/
OO.ui.MessageDialog.prototype.toggleVerticalActionLayout = function ( value ) {
value = value === undefined ? !this.verticalActionLayout : !!value;
*
* @private
* @chainable
+ * @return {OO.ui.MessageDialog} The dialog, for chaining
*/
OO.ui.ProcessDialog.prototype.fitLabel = function () {
var safeWidth, primaryWidth, biggerWidth, labelWidth, navigationWidth, leftWidth, rightWidth,